package com.baiyi.homeui.hshomeui.entity;

import android.text.TextUtils;

import com.baiyi.homeui.hshomeui.manage.MsgReceiverManager;

public class PcMd {
    private float temperature;

    public int getTemperature() {
        if(!TextUtils.isEmpty(MsgReceiverManager.temp_unit)&&MsgReceiverManager.temp_unit.equals("Fahrenheit")){
            return (int) ((temperature *1.8) + 32);
        }
        return (int)temperature;
    }

    public void setTemperature(float temperature) {
        this.temperature = temperature;
    }
}
